import request from '@/utils/request'


// 获取AI非流式回复消息
export function getChat(prompt) {
  return request({
    url: '/ai/message/chat?prompt='+prompt,
    method: 'get',
  })
}

// 获取AI流式回复消息
export function getChatStream(prompt) {
  return request({
    url: '/ai/message/chat/stream?prompt='+prompt,
    method: 'get',
  })
}